using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._TopographicProductionTools._DataManagement._Features
{
    /// <summary>
    /// <para>Calculate Default Values</para>
    /// <para>Replaces null values in a feature class or table with the default values from the geodatabase feature class.</para>
    /// <para>将要素类或表中的空值替换为地理数据库要素类中的默认值。</para>
    /// </summary>    
    [DisplayName("Calculate Default Values")]
    public class CalculateDefaultValues : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public CalculateDefaultValues()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_datasets">
        /// <para>Input Dataset</para>
        /// <para>The feature classes and/or tables whose null values will be replaced with the default values from the data model.</para>
        /// <para>其空值将替换为数据模型中的默认值的要素类和/或表。</para>
        /// </param>
        public CalculateDefaultValues(List<object> _in_datasets)
        {
            this._in_datasets = _in_datasets;
        }
        public override string ToolboxName => "Topographic Production Tools";

        public override string ToolName => "Calculate Default Values";

        public override string CallName => "topographic.CalculateDefaultValues";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_datasets, _out_dataset];

        /// <summary>
        /// <para>Input Dataset</para>
        /// <para>The feature classes and/or tables whose null values will be replaced with the default values from the data model.</para>
        /// <para>其空值将替换为数据模型中的默认值的要素类和/或表。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Dataset")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public List<object> _in_datasets { get; set; }


        /// <summary>
        /// <para>Output Dataset</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Dataset")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public List<object> _out_dataset { get; set; }


        public CalculateDefaultValues SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}